<?php
/***********************************************************************
 * @package    IvanEngine
 * @subpackage Plugin
 * @author     Ivan <ivanzx@msn.com>
 * @created    2010-07-25
 ***********************************************************************/
if(defined("IVANENGINE_PLUGINS"))
    die("Redefinition macro in :".__FILE__."(".__LINE__.")");
define("IVANENGINE_PLUGINS", true);

class CPlugins implements IPlugins
{
    public function Initialize(CPluginManager & $pluginMgr)
    {
        if( CConfig::Option(CConfig::OT_ActivePlugins)->Has('Debugger') )
        {
            CContext::Get()->GetController()->Forward('Debugger');
        }
        
        return true;
    }
    
    public function Shutdown()
    {
        
    }
}
?>
